package org.lvhengchang.schoolmanager.service;

import java.util.List;

import org.lvhengchang.schoolmanager.bean.Teacher;

public interface TeacherService {
	/**
	 * 获取所有教师信息
	 * 
	 * @return
	 * @throws Exception
	 */
	public List<Teacher> selectByAll() throws Exception;

	/**
	 * 根据用户ID查询教师信息
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public Teacher selectById(String teacher_id) throws Exception;

	/**
	 * 保存教师信息
	 * 
	 * @param teacher
	 * @return
	 * @throws Exception
	 */
	public int saveTeacher(Teacher teacher) throws Exception;

	/**
	 * 修改教师信息
	 * 
	 * @param teacher
	 * @return
	 * @throws Exception
	 */
	public int updateTeacher(Teacher teacher) throws Exception;

	/**
	 * 删除教师信息
	 * 
	 * @param teacher_id
	 * @return
	 * @throws Exception
	 */
	public int deleteTeacher(String teacher_id) throws Exception;

	/**
	 * 登录
	 * 
	 * @param username
	 * @param password
	 * @return
	 * @throws Exception
	 */
	public Teacher loginTeacher(String username, String password) throws Exception;

}
